<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/myTag.tld" prefix="page"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript" src="login/scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="login/scripts/common.js"></script>
<link rel="stylesheet" type="text/css" href="login/css/style.css" />
<link rel="stylesheet" type="text/css" href="login/css/theme1.css" />
<style type="text/css">
#search_bar td {
	border: none;
}

#box td {
	height: 28px;
}

#search_bar {
	width: 920px;
}
</style>
<div id="wrapper" style="margin-top: 10px;">
	<div id="content">
		<div id="box">
			<div>
				<h3>
					当前位置&nbsp;:&nbsp;系统设置&nbsp;>>&nbsp;城镇设置&nbsp;>>&nbsp;城镇列表
			  </h3>
			</div>
			<div style="color:red">${operationMessage }</div>
			<%--<div id="search_bar">
				<table width="100%" border="0" cellspacing="3" cellpadding="0">
					<tr>
						<td width="40">名称:
					  </td>
						<td width="100"><input name="lastname" id="timeTo" type="text" tabindex="1"
								style="width: 100px;" /></td>
						<td>
							<input type="button" onclick=javascript:
								location.href='reportAction!reportAll.action' ;
value="查询" />
						</td>
					</tr>
				</table>

			</div>
			--%><table border="0" cellpadding="3" cellspacing="0"
				style="width: 910px;">
				<thead>
					<tr>
						<th>
						  名称
						</th>
						<th>描述</th>
						<th>
							操作
						</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${beanList}" var="bean">
						<tr>
							<td class="a-center" width="150">${bean.TName }</td>
							<td class="a-center">${bean.TDes }</td>
							<td width="140" align="center">
								<a href="settingAction!show.action?className=town&town.TNum=${bean.TNum }">查看</a>&nbsp;|&nbsp;
								<a href="settingAction!updatePage.action?className=town&town.TNum=${bean.TNum }">修改</a>&nbsp;|&nbsp;
                                <a href="settingAction!delete.action?className=town&town.TNum=${bean.TNum }">删除</a>
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
			<div id="pager" class="pageDiv">
<div style="float: left; margin-right: 250px;">
		  <input type="button" value="添加城镇" onclick="javacript:window.self.location.href='settingAction!addPage.action?className=town';">
			  </div>
				<page:pageDiv url="settingAction!list.action" pageBean="${pageBean}" para="className=town"></page:pageDiv>
			</div>
		</div>
		<br />
	</div>
</div>
